package DTaskBugzillaApp;
use 5.018;
use warnings;
use Mojo::Base 'Mojolicious';

use Mojo::IOLoop;
use BugzillaJsonRpc::User;

sub startup
{
	my $self = shift;
	say "call startup $self";
	my $r = $self->routes;

	my $bug_with_id = $r->route('/:bug_id')->to(controller => 'Bugzilla');
	
	$bug_with_id->get('/:bug/attachments')
		->to(action => 'getAttachments');

	BugzillaJsonRpc::User::autoLogin;
}

1;

